﻿package vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;


/**商店：
 * 包括您的姓名、手机、邮箱、其他联系方式（例如qq）、商家类型、上传营业执照、身份证正反扫描件、门店名称、城市、详细地址、门店电话,投诉的次数
 * 
 */
@Entity
@Table
public class Store {
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;

	private String sellerName;//卖家姓名

	private String mobile;//手机号（账号）

	private String tele;//电话
	@Column(length=32)
	private String email;//电子邮箱
	@Column(length=32)
	private String qq;//联系方式

	private String type;//商家类型

	private String password;//密码                                   

	private String shopName;//门店名称
	
//	private String picture;//身份证照
	
//	private String zhizhao;//营业执照

	@OneToOne
	@JoinColumn(name="adds_id")
	private Address address;//商店得地址
	//@Column(length=32,nullable=false)
	private String details;//详细地址
	@Column(length=3)
	private int status;
	
	private int complainNum;//投诉得次数
	

	public int getComplainNum() {
		return complainNum;
	}
	public void setComplainNum(int complainNum) {
		this.complainNum = complainNum;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getSellerName() {
		return sellerName;
	}
	public void setSellerName(String sellerName) {
		this.sellerName = sellerName;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getTele() {
		return tele;
	}
	public void setTele(String tele) {
		this.tele = tele;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public Address getAddress() {
		return address;
	}
	public void setAddress(Address address) {
		this.address = address;
	}
	public String getShopName() {
		return shopName;
	}
	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
	public String getDetails() {
		return details;
	}
	public void setDetails(String details) {
		this.details = details;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	
	
	
}

